<!--
 * @FilePath     : /study_code/layui/17-19.html
 * @Description  : theme 配置主题
 * @Date         : 2025-04-10 10:48:34
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-10 11:05:10
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
    <style>
      #test1:focus {
        border-color: blueviolet !important;
      }

      .laydate-theme-pro {
      }

      .laydate-theme-pro.layui-laydate .layui-this,
      .laydate-theme-pro.layui-laydate .layui-this > div {
        background-color: blueviolet !important;
      }

      .layui-laydate-footer span:hover {
        color: blueviolet;
      }
      .laydate-theme-pro .layui-laydate-header i:hover,
      .laydate-theme-pro .layui-laydate-header span:hover {
        color: blueviolet;
      }

      .laydate-theme-pro .layui-laydate-footer span.layui-laydate-preview {
        color: blueviolet !important;
      }
    </style>
  </head>
  <body>
    <div class="layui-inline">
      <!-- 注意：外面这层元素并不是必须的 -->
      <input type="text" placeholder="请选择开始日期" class="layui-input" id="test1" />
    </div>

    <script src="/layui/dist/layui.js"></script>
    <script>
      layui.use('laydate', function () {
        var laydate = layui.laydate

        //执行一个laydate实例
        laydate.render({
          elem: '#test1', //指定元素

          //
          // theme: 'default', // 默认简约
          // theme: 'molv', // 墨绿
          // theme: '#c00', // 自定义 #c00 颜色
          // theme: 'grid', // 格子主题（简约基础上内部填充线框）
          theme: 'pro', // 自定义类名 （见上面 style 标签内）
        })
      })
    </script>
  </body>
</html>
